import Wrapper from '@/layout/components/Wrapper/index.vue';
import Tab from '@/views/DataHouse.vue';
import Document from '@/views/Document.vue';
import Home from '@/views/Home.vue';
import Image from '@/views/Image.vue';
import Button from '@/views/ModelSpace.vue';
import Date from '@/views/Date.vue';
import Component from '@/views/Component.vue';
import FL from '@/views/child_data/FolderList.vue';
import FS from '@/views/child_data/FolderShow.vue';
import FD from '@/views/child_data/FoDe.vue';
/**
 * 
 * 路由配置规则：
 * 
 * {
 *  path:'',路径
 *  name:'',路由名称，生成menu时menu name
 *  meta:{},额外信息，icon为menu中的icon
 *  children: [], 子路由，menu中的子menu 没有时可为空数组
 * }
 * 
 */


export const staticRoutes = [
  {
    path: '/',
    name: '首页',
    component: Home,
    children: [],
    meta: {
      icon: 'el-icon-s-home'
    }
  },
  {
    path: '/doc',
    name: '基本信息',
    component: Document,
    children: [],
    meta: {
      icon: 'el-icon-s-order'
    },
  },



  
  {
    path: '/tab',
    name: '数据空间',
    component: Tab,
    children: [
      // {
      //   path: 'list',//以“/”开头的嵌套路径会被当作根路径，所以子路由上不用加“/”;在生成路由时，主路由上的path会被自动添加到子路由之前，所以子路由上的path不用在重新声明主路由上的path了。
      //   name: 'list',
      //   children: [],
      //   meta: {
      //     icon: 'el-icon-camera'
      //   },
      //   component: FL
      // },
      // {
      //   path: 'show',//以“/”开头的嵌套路径会被当作根路径，所以子路由上不用加“/”;在生成路由时，主路由上的path会被自动添加到子路由之前，所以子路由上的path不用在重新声明主路由上的path了。
      //   name: 'show',
      //   children: [],
      //   meta: {
      //     icon: 'el-icon-camera'
      //   },
      //   component: FS
      // },
      // {
      //   path: 'detail',
      //   name:'detail',
      //   children: [],
      //   meta: {
      //     icon: 'el-icon-camera'
      //   },
      //   component: FD
      // },
    ],
    meta: {
      icon: 'el-icon-s-release'
    }
  },
  {
    path: '/button',
    name: '模型空间',
    component: Button,
    children: [],
    meta: {
      icon: 'el-icon-s-grid'
    }
  },
  {
    path: '/docimg',
    name: '方案',
    component: Image,
    children: [],
    meta: {
      icon: 'el-icon-camera'
    }
  },
  {
    path: '/date',
    name: '任务',
    component: Date,
    children: [],
    meta: {
      icon: 'el-icon-date'
    }
  },
  {
    path: '/component',
    name: '交流',
    component: Component,
    children: [],
    meta: {
      icon: 'el-icon-orange'
    }
  }
];
